package com.game.game.logic.frame;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConfigurationProperties(prefix="game.server.config")
public class ServerConfig {
    /**
     * 游戏服务id
     */
    private int serviceId;
    /**
     * 游戏服务所在的服务器id
     */
    private int serverId;
    private String businessGameMessageTopic = "business-game-message-topic";//业务服务监听消息的topic
    private String gatewayGameMessageTopic = "gateway-game-message-topic";//网关接收消息监听的topic
    private int logicThreads = 4;//业务处理线程数
    private int dbThreads = 16;//db处理线程数
    private int gatewayConsumeThreads = 2;// 处理从网关消息队列接收的消息的
    
    
 
    public int getGatewayConsumeThreads() {
        return gatewayConsumeThreads;
    }
    public void setGatewayConsumeThreads(int gatewayConsumeThreads) {
        this.gatewayConsumeThreads = gatewayConsumeThreads;
    }
    public int getDbThreads() {
        return dbThreads;
    }
    public void setDbThreads(int dbThreads) {
        this.dbThreads = dbThreads;
    }
    public int getLogicThreads() {
        return logicThreads;
    }
    public void setLogicThreads(int logicThreads) {
        this.logicThreads = logicThreads;
    }
    public String getBusinessGameMessageTopic() {
        return businessGameMessageTopic;
    }
    public void setBusinessGameMessageTopic(String businessGameMessageTopic) {
        this.businessGameMessageTopic = businessGameMessageTopic;
    }
    public String getGatewayGameMessageTopic() {
        return gatewayGameMessageTopic;
    }
    public void setGatewayGameMessageTopic(String gatewayGameMessageTopic) {
        this.gatewayGameMessageTopic = gatewayGameMessageTopic;
    }
    public int getServiceId() {
        return serviceId;
    }
    public void setServiceId(int serviceId) {
        this.serviceId = serviceId;
    }
    public int getServerId() {
        return serverId;
    }
    public void setServerId(int serverId) {
        this.serverId = serverId;
    }
    
    
}
